﻿$(window).ready(function () {
    $('#magazine').turn({
        display: 'double',
        acceleration: true,
        gradients: !$.isTouch,
        elevation: 50        
    });
});

$(window).bind('keydown', function (e) {
    if (e.keyCode == 37)
        $('#magazine').turn('previous');
    else if (e.keyCode == 39)
        $('#magazine').turn('next');
});

$(function () {
    $('#contact').click(function () {
        $('<div>').dialog({
            title: 'Contato',
            width: 400,
            height: 200
        });
    });
});